package com.zyj.eps.service;

import com.zyj.eps.mapper.KnowledgeMapper;
import com.zyj.eps.pojo.Knowledge;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author super
 * @date 2022/4/3 13:30
 */
@Service
public class KnowledgeServiceImpl implements KnowledgeService{
    @Autowired
    private KnowledgeMapper knowledgeMapper;
    @Override
    public List<Knowledge> getAllKnowledge() {
        return knowledgeMapper.getAllKnowledge();
    }

    @Override
    public Knowledge getKnowledgeById(int id) {
        return knowledgeMapper.getKnowledgeById(id);
    }
}
